//每个玩家的收信息线程
public class Server_SocketToClient_Receive extends Thread{
    Server_SocketToClient client;
    Server_SocketToClient_Receive(Server_SocketToClient client){
        this.client = client;
    }
    public void run(){
        while(true) {
            String mess = null;
            try{
                mess = client.in.readUTF();        
            }catch(Exception e){}
            if(mess.equals("我要注册")) {
                client.register();
            }
            if(mess.equals("我要登录")) {
                client.login();
            }
               
        }
    }
}